package metalink.admin;
import java.util.ArrayList;
import model.admin.AdminPlacementMo;
import vo.Placementvo;
import com.opensymphony.xwork2.ActionSupport;

public class UpdateInternship extends ActionSupport{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public ArrayList<Placementvo> internship_list= new ArrayList<Placementvo>();
	int student_id;
	int batch_id;
	int company_id;
	public ArrayList<Placementvo> getInternship_list() {
		return internship_list;
	}
	public void setInternship_list(ArrayList<Placementvo> internship_list) {
		this.internship_list = internship_list;
	}
	public int getStudent_id() {
		return student_id;
	}
	public void setStudent_id(int student_id) {
		this.student_id = student_id;
	}
	public int getBatch_id() {
		return batch_id;
	}
	public void setBatch_id(int batch_id) {
		this.batch_id = batch_id;
	}
	public int getCompany_id() {
		return company_id;
	}
	public void setCompany_id(int company_id) {
		this.company_id = company_id;
	}
	
	public String execute(){
		AdminPlacementMo mo= new AdminPlacementMo();
		new AdminPlacementMo().updateStudentInternship(student_id, batch_id, company_id,"StudentInternship");
		internship_list=mo.getInternshipdetails(batch_id);
		return SUCCESS;
	}
}
